import { http } from '@/utils/http'

export function usePmSpareWareApi() {
  return {
    // 获取领用申请 - id
    getSWUserApplyById(id: string) {
      return http.get<SpareWareUseForm>(`/prod-api/admin-api/project/spare-warehouse/use-apply/${id}`)
    },
    // 获取领用申请 - 流程id
    getSWUserApplyByPiId(id: string) {
      return http.get<SpareWareUseForm>(`/prod-api/admin-api/project/spare-warehouse/use-apply/byProcessInstanceId?processInstanceId=` + id)
    }
  }
}
